//开发环境 jq    生产环境 jq.min.js
//开发环境   
console.log(1);
var fs = require('fs');//无路径   包或者是内置模块
var cheerio = require('cheerio');
var data = fs.readFileSync('./input.txt');
var request = require('request');
console.log(data.toString())
var request = require('request');
request('http://admin-server.wuliang666.com/get_banner', function (error, response, body) {
  var dt = JSON.parse(response.body).data.list;
  var str = "";
  dt.map(function(v,i){
    str += '轮播图'+i+"号：url:-----"+v.url+"\n";
  })
  fs.writeFileSync('./input.txt',str)
});
